/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.gm.entities;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Embeddable;
import javax.validation.constraints.NotNull;

/**
 *
 * @author Med EL MOUDDENE
 */
@Embeddable
public class SubirExamenRemarquePK implements Serializable {
    @Basic(optional = false)
    @NotNull
    @Column(name = "ID_PERSONNE")
    private int idPersonne;
    @Basic(optional = false)
    @NotNull
    @Column(name = "ID_EXAMEN")
    private int idExamen;
    @Basic(optional = false)
    @NotNull
    @Column(name = "ID_REMARQUE")
    private int idRemarque;

    public SubirExamenRemarquePK() {
    }

    public SubirExamenRemarquePK(int idPersonne, int idExamen, int idRemarque) {
        this.idPersonne = idPersonne;
        this.idExamen = idExamen;
        this.idRemarque = idRemarque;
    }

    public int getIdPersonne() {
        return idPersonne;
    }

    public void setIdPersonne(int idPersonne) {
        this.idPersonne = idPersonne;
    }

    public int getIdExamen() {
        return idExamen;
    }

    public void setIdExamen(int idExamen) {
        this.idExamen = idExamen;
    }

    public int getIdRemarque() {
        return idRemarque;
    }

    public void setIdRemarque(int idRemarque) {
        this.idRemarque = idRemarque;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (int) idPersonne;
        hash += (int) idExamen;
        hash += (int) idRemarque;
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof SubirExamenRemarquePK)) {
            return false;
        }
        SubirExamenRemarquePK other = (SubirExamenRemarquePK) object;
        if (this.idPersonne != other.idPersonne) {
            return false;
        }
        if (this.idExamen != other.idExamen) {
            return false;
        }
        if (this.idRemarque != other.idRemarque) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.gm.entities.SubirExamenRemarquePK[ idPersonne=" + idPersonne + ", idExamen=" + idExamen + ", idRemarque=" + idRemarque + " ]";
    }
    
}
